#include <string>
#include <iostream>

#include "network.hpp"

using namespace std;
/*
int main(int argc, char* argv[])
{
    if (argc != 3)
    {
        cerr << "Usage " << argv[0] << " server port" << endl;
        return -1;
    }

    int socketfd = connect(argv[1], argv[2]);
    if (socketfd < 0)
    {
        return -1;
    }

    SocketSet set;
    set.add(socketfd);
    char buf[256];
    while (true)
    {
        if (cin.peek() != cin.eof())
        {
            string line;
            getline(cin, line);
            cin.ignore();
            send(line, socketfd);
        }
        set.scan(0);
        if (set.check(socketfd))
        {
            if (recieve(buf, 256, socketfd) <= 0)
                break;
            cout << buf << endl;
        }
    }
    close(socketfd);
}
*/
